<?php 
if($_SERVER['REQUEST_URI']){
	$path = explode("/", $_SERVER['REQUEST_URI']);
	if(count($path)==4){
		$secondPath = $path[1];
		if($secondPath=="READLIST"){
			$BOOKID = $path[3];//书籍编号 ReadList_html.php里面需要
			include_once 'ReadList_html.php';
			exit();
		}elseif ($secondPath=="READ"){
			$BIDCH = explode("-", $path[3]);
			$BOOKID = $BIDCH[0];
			$CH = $BIDCH[1];
			$CHN = $path[2];
			include_once 'Read_html.php';
			exit();
		}elseif ($secondPath=="CP"){
			$myCP = $path[2];
			$myPage = $path[3];
			$mySearch = "";
			include_once 'index_html.php';
			exit();
		}elseif ($secondPath=="S"){
			$mySearch = $path[2];
			$myPage = $path[3];
			$myCP = "";
			include_once 'index_html.php';
			exit();
		} 
	}
} 
//如果错误就进入首页
include_once 'index_html.php';
exit();

?>